package cn.songhaiqing.walle.ble_controller;

import org.json.JSONObject;

public abstract class BleConnectCallBack {
    public static final int RESPONSE_TYPE_BLOOD_PRESSURE = 140;
    public static final int RESPONSE_TYPE_BRACELET_HEART_OFF = 136;
    public static final int RESPONSE_TYPE_BRACELET_HEART_ON = 135;
    public static final int RESPONSE_TYPE_BUTTON_LONG_CLICK = 134;
    public static final int RESPONSE_TYPE_BUTTON_SHORT_CLICK = 133;
    public static final int RESPONSE_TYPE_CURRENT_HOUR_ACTIVITY = 142;
    public static final int RESPONSE_TYPE_HEART_WARN = 141;
    public static final int STATE_ALREADY_CONNECT = 3;
    public static final int STATE_CONNECTTING = 4;
    public static final int STATE_CONNECT_FAIL = 1;
    public static final int STATE_CONNECT_SUCCESS = 0;
    public static final int STATE_DISCONNECT = 2;
    public static final int STATUS_SUCCESS = 0;

    public void onConnectionStateChange(int state, String mac) {
    }

    public void onDescriptorWrite(int status) {
    }

    public void onSDKDeviceResponse(JSONObject value, int type) {
    }

    public void onSelfDeviceResponse(byte[] value, String mac) {
    }

    public void onBluetoothServiceDiscover(boolean status) {
    }

    public class FoundDevice {
        private String mac;
        private String name;

        public FoundDevice() {
        }

        public String getMac() {
            return this.mac;
        }

        public void setMac(String mac2) {
            this.mac = mac2;
        }

        public String getName() {
            return this.name;
        }

        public void setName(String name2) {
            this.name = name2;
        }
    }
}
